﻿<%@ Page Title="Nowy rachunek" Language="C#" MasterPageFile="~/Sites/Accounts/AccountsMaster.master" AutoEventWireup="true" CodeBehind="NewAccount.aspx.cs" Inherits="BankSite.Sites.Accounts.NewAccount" %>
<asp:Content ID="Content1" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
                <h2>Załóż nowy rachunek.</h2>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView DataKeyNames="ID" DefaultMode="Insert" ID="FormView1" runat="server" DataSourceID="AccountEntityDataSource" CellPadding="4" ForeColor="#333333">
        <InsertItemTemplate>
            <!-- Konto
                id
                id_rodzaj_konta
                id_rodzaj_rachunku
                nazwa
                numer_rachunku
                saldo_dostepne
                saldo_ksiegowe
                waluta
                data_utworzenia
                data_zakonczenia
                zablokowane
                -->
            <!-- Klient_konto 
                id_klient
                id_konto
                opis
                data_utworzenia
                zablokowane-->
        </InsertItemTemplate>
        <EditRowStyle BackColor="#7C6F57"></EditRowStyle>

        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"></FooterStyle>

        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"></HeaderStyle>

        <PagerStyle HorizontalAlign="Center" BackColor="#666666" ForeColor="White"></PagerStyle>

        <RowStyle BackColor="#E3EAEB"></RowStyle>
    </asp:FormView>
    <asp:EntityDataSource runat="server" ID="AccountEntityDataSource" DefaultContainerName="BankBaseEntities" ConnectionString="name=BankBaseEntities" EnableFlattening="False" EnableInsert="True" EntitySetName="Konta"></asp:EntityDataSource>
    <asp:EntityDataSource runat="server" ID="EntityDataSource1" DefaultContainerName="BankBaseEntities" ConnectionString="name=BankBaseEntities" EnableFlattening="False" EntitySetName="Rodzaje_konta"></asp:EntityDataSource>
</asp:Content>
 